﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Những test không đúng khi chạy</title>
</head>
<body>
<?php 
require_once("../include/db_info.inc.php"); 
require_once("admin-header.php");
require_once("../maincore.php");
if (!defined("THNOJ")) die("Outside of the site");

if(!isset($_GET['s'])) die("Quay lại");
$sid=intval($_GET['s']);

$sql="SELECT * FROM `ctd_run` WHERE `solution`=".$sid." and solution in (select solution_id from solution where user_id='$myid')";
$result=mysql_query($sql);

while ($row=mysql_fetch_array($result)) {
	echo "<a href='viewtest.php?t=".$row['test']."'>".$row['test'].":".$row['status']." at ".$row['moment']."<br/>";
}
require_once("../oj-footer.php");

?>


</body>
</html>

